<?php

class IndexAction extends Action {

    public function index(){
		$item = new Model('Item');
		$new = $item->field('item_id,title,time')->order('item_id desc')->limit(10)->select();
		$hot = $item->field('item_id,title,time')->order('count desc')->limit(10)->select();
		$this->assign('new',$new);
		$this->assign('hot',$hot);
		$this->display();
    }
}
?>